package com.cn.yz.server.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients//需要通过注解@EnableFeignClients来开启feign:
public class ServiceFeignApplication {

	public static void main(String[] args) {
        SpringApplication.run(ServiceFeignApplication.class, args);
    }

}
